package com.sos.widget.view;

import static android.graphics.Paint.STRIKE_THRU_TEXT_FLAG;

import android.content.Context;
import android.graphics.Paint;
import android.util.AttributeSet;

import androidx.annotation.Nullable;


public class HwTextView extends androidx.appcompat.widget.AppCompatTextView {
    public HwTextView(Context context) {
        super(context);
        initView();
    }

    public HwTextView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        initView();
    }

    private void initView() {
        getPaint().setFlags(STRIKE_THRU_TEXT_FLAG| Paint.ANTI_ALIAS_FLAG);// 设置中划线并加清晰

    }

}
